package me.weijing.common.model;

import java.io.Serializable;

import com.j256.ormlite.field.DatabaseField;

public class ChatInfo implements Serializable {
    /**
     * 
     */
    private static final long serialVersionUID = 3026677169619795394L;
    @DatabaseField(generatedId = true)
    private int id;// 聊天标识
    @DatabaseField
    private String jid;// 聊天帐号
    @DatabaseField
    private long eid;// 事件id
    @DatabaseField
    private String toMen;// 说话的人
    @DatabaseField
    private String fromMen;// 参与的人
    @DatabaseField
    private String body;// 聊天的内容
    @DatabaseField
    private MessageType messageType;// 聊天类型
    @DatabaseField
    private boolean isNew; // 是否是最新信息
    @DatabaseField
    private long recordTime;// 聊天的时间
    @DatabaseField
    private long voicetime;// 录音时间
    @DatabaseField
    private ChatStatus status;// 处理状态
    @DatabaseField
    private int infoType;// 标识是系统消息

    @DatabaseField
    private int readed;// 信息是否已读，0表示未读，1表示也读

    @DatabaseField
    private int chatId;

    @DatabaseField
    private String filePath;

    public ChatInfo() {
        super();
    }

    public ChatInfo(String toMen, String fromMen, String body, MessageType messageType, long recordTime, long voicetime, ChatStatus status, int infoType,
            int read, int chatId, String filePath) {
        super();
        this.toMen = toMen;
        this.fromMen = fromMen;
        this.body = body;
        this.messageType = messageType;
        this.recordTime = recordTime;
        this.voicetime = voicetime;
        this.status = status;
        this.infoType = infoType;
        this.readed = read;
        this.chatId = chatId;
        this.filePath = filePath;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getToMen() {
        return toMen;
    }

    public void setToMen(String toMen) {
        this.toMen = toMen;
    }

    public String getFromMen() {
        return fromMen;
    }

    public void setFromMen(String fromMen) {
        this.fromMen = fromMen;
    }

    public MessageType getMessageType() {
        return messageType;
    }

    public void setMessageType(MessageType messageType) {
        this.messageType = messageType;
    }

    public boolean isNew() {
        return isNew;
    }

    public void setNew(boolean isNew) {
        this.isNew = isNew;
    }

    public long getRecordTime() {
        return recordTime;
    }

    public String getJid() {
        return jid;
    }

    public void setJid(String jid) {
        this.jid = jid;
    }

    public void setRecordTime(long recordTime) {
        this.recordTime = recordTime;
    }

    public long getEid() {
        return eid;
    }

    public void setEid(long eid) {
        this.eid = eid;
    }

    public long getVoiceTime() {
        return voicetime;
    }

    public void setVoiceTime(long voicetime) {
        this.voicetime = voicetime;
    }

    public ChatStatus getStatus() {
        return status;
    }

    public void setStatus(ChatStatus status) {
        this.status = status;
    }

    public int getRead() {
        return readed;
    }

    public void setRead(int read) {
        this.readed = read;
    }

    public int getInfoType() {
        return infoType;
    }

    public void setInfoType(int infoType) {
        this.infoType = infoType;
    }

    public String getFilePath() {
        return filePath;
    }

    public int getChatId() {
        return chatId;
    }

    public void setChatId(int chatId) {
        this.chatId = chatId;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public ChatInfo(long eid, String toMen, String fromMen, String body, MessageType messageType, boolean isNew, long recordTime, long voicetime,
            ChatStatus status, int infoType, int readed, int chatId, String filePath) {
        super();
        this.eid = eid;
        this.toMen = toMen;
        this.fromMen = fromMen;
        this.body = body;
        this.messageType = messageType;
        this.isNew = isNew;
        this.recordTime = recordTime;
        this.voicetime = voicetime;
        this.status = status;
        this.infoType = infoType;
        this.readed = readed;
        this.chatId = chatId;
        this.filePath = filePath;
    }
}
